#include <stdio.h>
int main()
{
	int n,m,k=0;
	while(scanf("%d %d",&n,&m)!=EOF){
	for(int i=n,a,b,c;i<=m;i++)
	{
		a=i/100;
		b=i/10%10;
		c=i%10;
		if(i==a*a*a+b*b*b+c*c*c)
		{
			printf("%d=%d*%d*%d+%d*%d*%d+%d*%d*%d\n",i,a,a,a,b,b,b,c,c,c);
			k++;
		}
	}
	if(k==0)
	printf("none\n");
	}
	return 0;
}